<!DOCTYPE html>
<style>
  html, body { background: inherit }
  .red { background: red }
</style>
<body class="red">
You should see no red.
<script>
  document.body.offsetTop;
  document.body.className = "";
</script>
